SourceBadge

fun SourceBadge(text: String, size: SourceBadgeSizes, style: SourceBadgeStyle, modifier: Modifier = Modifier, maxLines: Int = 1, textOverflow: TextOverflow = TextOverflow.Ellipsis)

A badge component to highlight important content.

See the design spec for more details.

Parameters

text

The text to display inside the badge.

size

The size of the badge, see SourceBadgeSizes.

style

The style of the badge, see SourceBadgeStyle.

modifier

Optional Modifier for this badge.

maxLines

Optional - Maximum number of lines to display. Default is 1.

textOverflow

Optional - Overflow behaviour of the text. Default is TextOverflow.Ellipsis.